<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnDepartmentIdInTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task')->addColumn('department_id', 'integer', [
            'null' => false,
            'limit' => 11,
            'default' => 0,
            'signed' => false,
            'comment' => '部门id'
        ])->save();
    }

    public function down()
    {
        $this->table('task')->removeColumn('department_id')->save();
    }
}
